package com.zz.common.entity;

import com.zz.common.enums.MessageType;
import io.netty.channel.Channel;
import io.netty.channel.ChannelHandlerContext;
import lombok.Builder;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;

@Slf4j
@Data
@Builder
public class ProtocolInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    private ChannelHandlerContext context;

    private Channel serverChannel;

    private String domain;

    private String clientId;

    private MessageType type;

    private byte[] data;

    private Map<String, Object> params = new HashMap<>();
}
